﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Articles_List.aspx.cs" Inherits="BBS_Articles_List" %>

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>发贴内容</title>
    <link href="css/style.css" rel="stylesheet" type="text/css" />
    <script language ="javascript" type ="text/javascript" >
      var state=0;
	  function yz(e){
		if(event.srcElement.Text== "yz")
		event.returnValue=confirm("是否确定删除此条信息？");
	  }
	  document.onclick=yz;
	 
	 function CheckForm()
	{
	  if (editor.EditMode.checked==true)
	  	  document.myform.Content.value=editor.HtmlEdit.document.body.innerText;
	  else
	  	  document.myform.Content.value=editor.HtmlEdit.document.body.innerHTML; 
	  return true;
	 } 
	  
	 function ccc()
	 {
	   editor.HtmlEdit.document.body.innerHTML=document.myform.Content.value;
	 }		 
    </script>
</head>
<body  leftmargin="0" topmargin="0"  onload="ccc()">
    <form id="myform" onsubmit="return CheckForm();" method="post" runat="server">
	<table cellspacing="0" cellpadding="0" width="900" align="center"  >
		<tr>
		 <td>
     <table style ="width :100%; height :26;" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr>
         <td style ="background-color :#ffffff;">&nbsp;&nbsp;<img id="imgIndicator" src ="images/Point02.gif" style ="width :13; height :13;" alt ="当前位置" />
           当前位置：<a href="index.aspx">论坛首页</a>-&gt;<a href="Board.aspx?SectionID=<%=SID%>&amp;SectionName=<%=SName%>" ><%=SName%></a>→<%=AName%></td>
       </tr>
      </table>
   <table style ="width:100%;BORDER-COLLAPSE: collapse;" border="1" cellpadding="0" cellspacing="0" bordercolor="#ffffff">
     <tr>
       <td>
         <table cellspacing="0" cellpadding="0" width="100%"  align="center" class ="AllLine">
		  <tr style ="height :30;">
		    <td  style ="background-color :#E2EBF5;" >&nbsp;<b>帖子主题：<%=AName%></b></td>
		  </tr>
	    </table>
       </td>
     </tr>
    </table>    
	<table cellspacing="0" cellpadding="0" width="100%"  align="center">
	  <tr>
		<td>
		 <asp:GridView ID="GridView2" runat="server" Width="100%" DataKeyNames="ArticleID" 
            ForeColor="#333333" AutoGenerateColumns="False" AllowPaging="True" PageSize="1" EmptyDataText="没搜索到相匹配的数据" ShowHeader="False" OnRowCommand="GridView2_RowCommand" OnRowEditing="GridView2_RowEditing" OnRowDeleting="GridView2_RowDeleting" BorderStyle="None" BackColor="White" GridLines="Vertical">        
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <RowStyle BackColor="White" ForeColor="#333333" Height="50px" />
            <AlternatingRowStyle BackColor="White" />
                <Columns>
                    <asp:templatefield >
                      <itemtemplate >
                        <table style ="width:100%;BORDER-COLLAPSE: collapse;" border="1" cellpadding="6" cellspacing="0" bordercolor="#6595d6" >
                          <tr>
                            <td style ="width :20%; height :200; background-color :#E2EBF5;" valign ="top" >
                                姓名：<%# DataBinder.Eval(Container.DataItem,"author")%><br><br>
                                姓别：<%# DataBinder.Eval(Container.DataItem,"sex")%><br><br>
                                等级：<%# DataBinder.Eval(Container.DataItem,"grade")%><br><br>
                                注册：<%# DataBinder.Eval(Container.DataItem, "RegDT")%><br /><br />
                            </td>
                            <td valign ="top" >
                              <table style ="width:100%;" border="0" cellpadding="0" cellspacing="4" >
                               <tr style ="height :20;">
                                 <td>发表于&nbsp;<%# DataBinder.Eval(Container.DataItem,"pulishtime")%>&nbsp;&nbsp;
                                     IP：<%# DataBinder.Eval(Container.DataItem,"UserIP")%>
                                    <asp:ImageButton id="SendEdit" runat="server"  CommandArgument ='<%# Eval("ArticleID") %>' Width="50" ImageUrl="images/Edit.gif" Height="17" CommandName="Edit"  AlternateText="编辑"></asp:ImageButton>&nbsp;
						            <asp:ImageButton id="SendDel" runat="server"  CommandArgument ='<%# Eval("ArticleID") %>' Width="50" ImageUrl="images/delete.gif" Height="17" CommandName="Delete" AlternateText="删除" Text="yz"></asp:ImageButton> 
                                  </td>
                                 <td align="right" ><b>1楼</b></td>
                                </tr>
                                <tr>
                                  <td style ="background-color :#E2EBF5; height :1;" colspan ="2"></td>
                                </tr>
                               <tr>
                                 <td colspan ="2"><%# DataBinder.Eval(Container.DataItem,"content")%></td>
                               </tr>
                               <tr>
                                 <td><img src="images/sigline.gif" width="289" height ="12" alt ="" /></td>
                               </tr>
                               <tr>
                                 <td><%# DataBinder.Eval(Container.DataItem, "Signnature")%></td>
                               </tr>
                              </table>   
                            </td>
                          </tr>
                        </table>
                      </itemtemplate>
                    </asp:templatefield>
                </Columns>
            </asp:GridView>
			</td>
		</tr>
	</table>
	<table cellspacing="0" cellpadding="0" width="100%"  align="center">
	  <tr>
		<td>
		  <asp:GridView ID="GridView1" runat="server" Width="100%" DataKeyNames="RepliesID" 
            ForeColor="#333333" AutoGenerateColumns="False" AllowPaging="True" PageSize="10" EmptyDataText="" ShowHeader="False" OnRowCommand="GridView1_RowCommand" OnRowDeleting="GridView1_RowDeleting" OnRowEditing="GridView1_RowEditing" BorderStyle="None" OnPageIndexChanging="GridView1_PageIndexChanging" OnDataBound="GridView1_DataBound" >        
            <FooterStyle BackColor="White" Font-Bold="True" ForeColor="#990000" />
            <RowStyle BackColor="white" ForeColor="#333333" Height="50px" />
            <AlternatingRowStyle BackColor="White" />
              <PagerTemplate>
                    <table width="100%">
                        <tr>
                             <td align="right"><asp:Label ID="CurrentPageLabel" runat="server" ForeColor="Blue" Text=""></asp:Label></td>
                             <td style ="width :200;" width="70%" align="right">
                                <asp:LinkButton CommandName="Page" CommandArgument="First" ID="linkBtnFirst" runat="server">首页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Prev" ID="linkBtnPrev" runat="server">上一页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Next" ID="linkBtnNext" runat="server">下一页</asp:LinkButton>
                                <asp:LinkButton CommandName="Page" CommandArgument="Last" ID="linkBtnLast" runat="server">尾页</asp:LinkButton>
                                <asp:TextBox ID="txtGoPage" class="INPUT" runat="server" MaxLength="5" Width="15px"></asp:TextBox>
                                <asp:LinkButton ID="linkBtnGo" runat="server" OnClick="linkBtnGo_Click">跳转</asp:LinkButton>
                                <asp:Label ID="labMessage" runat="server" ForeColor="Red"></asp:Label></td>                            
                        </tr>
                    </table>
                </PagerTemplate>
                <Columns>
                    <asp:templatefield >
                      <itemtemplate >
                        <table style ="width:100%;BORDER-COLLAPSE: collapse;" border="1" cellpadding="6" cellspacing="0" bordercolor="#6595d6" >
                          <tr>
                            <td style ="width :20%; height :200; background-color :#E2EBF5;" valign ="top" >
                                姓名：<%# DataBinder.Eval(Container.DataItem, "Reperson")%><br><br>
                                姓别：<%# DataBinder.Eval(Container.DataItem,"sex")%><br><br>
                                等级：<%# DataBinder.Eval(Container.DataItem,"grade")%><br><br>
                                注册：<%# DataBinder.Eval(Container.DataItem, "RegDT")%><br /><br />
                            </td>
                            <td valign ="top" >
                              <table style ="width:100%;" border="0" cellpadding="0" cellspacing="4" >
                               <tr style ="height :22;">
                                  <td>
                                    <table style ="width:100%;" border="0" cellpadding="0" cellspacing="0" >
                                       <tr style ="height :20;">
                                         <td>发表于&nbsp;<%# DataBinder.Eval(Container.DataItem, "ReDT")%>&nbsp;&nbsp;
                                             IP：<%# DataBinder.Eval(Container.DataItem,"UserIP")%>
						                     <asp:ImageButton id="SendEdit" runat="server" CommandArgument ='<%# Eval("RepliesID") %>' Width="50" ImageUrl="images/Edit.gif" Height="17" CommandName="Edit" AlternateText="编辑"></asp:ImageButton> 				
						                     <asp:ImageButton id="SendDel" runat="server" CommandArgument ='<%# Eval("RepliesID") %>' Width="50" ImageUrl="images/delete.gif" Height="17" CommandName="Delete" AlternateText="删除"  Text="yz"></asp:ImageButton> 
                                          </td>
                                         <td align="right" ><b><%#(Container.DataItemIndex+2) %>楼</b></td>
                                        </tr>
                                        <tr>
                                          <td style ="background-color :#E2EBF5; height :1;" colspan ="2"></td>
                                        </tr>
                                     </table>
                                  </td>
                               </tr>
                               <tr style="height :130;">
                                 <td valign ="top" ><%# DataBinder.Eval(Container.DataItem,"content")%></td>
                               </tr>
                               <tr >
                                 <td>
                                   <table style ="width:100%;" border="0" cellpadding="0" cellspacing="0" >
                                     <tr>
                                       <td><img src="images/sigline.gif" width="289" height ="12" alt ="" /></td>
                                     </tr>
                                     <tr>
                                       <td valign ="baseline" ><%# DataBinder.Eval(Container.DataItem, "Signnature")%></td>
                                     </tr>
                                   </table>  
                                 </td>
                               </tr>
                              </table>   
                            </td>
                          </tr>
                        </table>
                      </itemtemplate>
                    </asp:templatefield>
                </Columns>
            </asp:GridView>
			</td>
		</tr>
	</table><br />
	<table class="table" style="BORDER-COLLAPSE: collapse" bordercolor="#6595d6" cellspacing="0" cellpadding="1" width="100%" align="center" bgcolor="#ffffff" border="1">
		<tr>
			<td bgcolor="#6595d6" align="center" colspan="2" height="20"><font color="#ffffff"><strong>回复帖子</strong></font></td>
		</tr>
		<tr>
			<td valign="middle" align="right" width="100">回复内容：</td>
			<td width="560" bgcolor="#ffffff" colspan="3">
			   <asp:textbox id="Content" style="DISPLAY: none" runat="server" textmode="MultiLine">&nbsp;</asp:textbox>
			   <iframe id="editor" style="WIDTH: 670px; HEIGHT: 400px" src="Editor/editor.aspx" frameborder="1" scrolling="no"></iframe>
			</td>
		</tr>
		<tr>
			<td></td>
			<td align="center">
			  <asp:imagebutton id="Submit" Runat="server" ImageUrl="images/fabu.gif" OnClick="Submit_Click"></asp:imagebutton>&nbsp;&nbsp;&nbsp;
			  <asp:imagebutton id="Reset" onclick="Reset_Click" Runat="server" ImageUrl="images/cancle.gif"></asp:imagebutton></td>
		</tr>
	</table>						
	</td></tr></table> 
    </form>
</body>
</html>
